#!/bin/bash

set -e # exit on error
set -x # echo commands

if  [[ -z "${TRAVIS_TAG}" ]]; then
    echo
    echo "SKIPPING DEPLOY STAGE INSTALL --- This is a NOT build for a release tag"
    echo
    exit 0
fi

# do the base install
bash scripts/ci/install

# install all build, test, deploy, and run dependencies
conda install -n testenv --yes --quiet `python scripts/deps.py build test run deploy`

# awscli not available from conda defaults
pip install awscli

npm install -g npm

# install NPM dependencies
pushd bokehjs
npm ci --no-progress
popd

# install sampledata
python -c 'import bokeh; bokeh.sampledata.download(progress=False)'
